<!-- /* Description for file.
 *面试题目修改页面
 *
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/interviewquestions
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0707
 * @lastmodified  张海杰2011年0707
 */-->

<?php
echo $html->css ( 'style' );
//echo $javascript->link ( 'jquery' );
echo $html->css ( 'jquery-validate/css/screen' );
?> 
<script type="text/javascript">
$(window).unload( function (){ 
	window.opener.location.href=window.opener.location.href;
	
	});
</script>
<script type="text/javascript">
//添加验证
$(document).ready(function() {
	$.validator.setDefaults({       
		 submitHandler: function(form) {
		 form.submit();	  
		} 
	});   
			
	$(".f").validate({
		rules: {
		"data[Interviewquestion][name]":{
			required: true,string:true,stringMinLength:0,stringMaxLength:50
			},
		"data[Interviewquestion][score]":{
			required: true,score:true
			},
		"data[Interviewquestion][memo]":{
			required: false,string:true,stringMinLength:0,stringMaxLength:200
			}
		},
		messages:{maxitem:{required: "请输入"}},
		focusInvalid:false,
		onkeyup:false,
		errorPlacement:function(error, element){error.appendTo(element.parent());}
	});
	 

});
//验证结束
</script>

<div class="tabflex">
<?php echo $form->create('Interviewquestion',array('class'=>'f','action'=>'edit/'.$interviewquestion['Interviewquestion']['id']));?>
<fieldset><legend><?php __('Edit');//测试项目?></legend>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left;font-size:12px;">
	<tr>
	<td>
	<?php
		echo $form->hidden('id',array('default'=>$interviewquestion['Interviewquestion']['id']));
		echo $form->hidden('fatherId',array('default'=>$interviewquestion['Interviewquestion']['fatherId']));
		echo $form->hidden('creater',array('default'=>$interviewquestion['Interviewquestion']['creater']));?> </td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('EditName');//名称?>:</td>
		<td >
		<?php echo $form->input('name',array('default'=>$interviewquestion['Interviewquestion']['name'],
							'class' => 'TextBoxE1','label'=>false));?>
		</td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('skillScore');//分数?>:</td>
		<td >
		<?php echo $form->input('score',array('default'=>$interviewquestion['Interviewquestion']['score'],
							'class' => 'TextBoxE1','label'=>false));?>
		</td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('InterviewquestionMemo');//备注?>:</td>
		<td >
		<?php echo $form->textarea('memo',array('default'=>$interviewquestion['Interviewquestion']['memo'],
								'class' => 'areaStyle','label'=>false,'size'=>4));?>
		</td>
	</tr>
</table>
</fieldset>	
<table width="50%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="40"><?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?> <!-- __('reset', true)取消-->
		</td>
		<td width="40"><?php echo $form->button('确定',array('type'=>'submit','class'=>'oksubmit'));?><!-- __('ok', true)确定-->
		</td>
		<td></td>
	</tr>
</table>

<?php echo $form->end();?>
</div>